#-*- coding:utf-8 -*-

from urllib.request import urlopen

urlimg="http://www.pythonscraping.com/img/gifts/img6.jpg"
waiturl=urlopen(urlimg).read()
print (waiturl)
#imgfile=open('img6.jpg','w')
#mgfile.write(waiturl)